package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Author WEN
 * @Date 2023/12/14 0014
 **/
@Data
@ApiModel("客户信息修改对象")
public class CustomerInfoUpdateVo {
    @NotBlank(message = "企业名称不能为空")
    @Length(max = 200, message = "企业名称字符长度限制在200个以内")
    @ApiModelProperty(value = "企业名称", required = true)
    private String name;

    @NotBlank(message = "企业简称不能为空")
    @Length(max = 50, message = "企业简称字符长度限制在50个以内")
    @ApiModelProperty(value = "企业简称", required = true)
    private String abbrevia;

    @Length(max = 50, message = "地址-省字符长度限制在 50 个以内")
    @ApiModelProperty(value = "省")
    private String province;

    @Length(max = 50, message = "地址-市字符长度限制在 50 个以内")
    @ApiModelProperty(value = "市")
    private String city;

    @Length(max = 50, message = "地址-县/区字符长度限制在 50 个以内")
    @ApiModelProperty(value = "县/区")
    private String area;

    @Length(max = 50, message = "地址-镇字符长度限制在 50 个以内")
    @ApiModelProperty(value = "镇")
    private String town;

    @Length(max = 200, message = "详细地址字符长度限制200个以内")
    @ApiModelProperty(value = "详细地址")
    private String address;


}
